# 列表推导式(又称列表解析式)提供了一种简明扼要的方法来创建列表
multiples = [i for i in range(30) if i % 3 is 0]
print(multiples)
# Output: [0, 3, 6, 9, 12, 15, 18, 21, 24, 27]


squared = [x ** 2 for x in range(10)]
print(squared)
